package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class SqlParameterDeclarationList {

    private int beginIndex;
    private int endIndex;
    private List<SqlParameterDeclaration> sqlParameterDeclarationList;

    public SqlParameterDeclarationList(int beginIndex,
                                       int endIndex,
                                       List<SqlParameterDeclaration> sqlParameterDeclarationList) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.sqlParameterDeclarationList = sqlParameterDeclarationList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return sqlParameterDeclarationList.size();
    }

    public SqlParameterDeclaration get(int index) {
        return sqlParameterDeclarationList.get(index);
    }

}
